package com.matt.foundation.vo.nursery;

import com.matt.domain.Classes;
import lombok.Data;

import java.util.Date;

/**
 * *******************************
 * Created by lch.
 * form com.matt
 * on 2018/11/26
 * *******************************
 */
@Data
public class NurseryScheduleVo {

    //排课id
    private String id;

    //托班Id
    private String classesId;

    //托班名称
    private String classesName;

    //托班 排课状态
    private Integer status=0;

    //上课时间
    private Date lessonDate;

    // 是否包含主题课程  0：未包含  1：包含
    private Integer courseType=0;

    //创建时间
    //private Date created;

    public static NurseryScheduleVo of(String classesId,String classesName,Integer status,Date created,Date lessonDate){
        NurseryScheduleVo vo = new NurseryScheduleVo();
        vo.setClassesId(classesId);
        vo.setClassesName(classesName);
        vo.setStatus(status);
        //vo.setCreated(created);
        vo.setLessonDate(lessonDate);
        return vo;
    }

    public static NurseryScheduleVo ofDomain(Classes classes,Integer status,Date created,Date lessonDate){
        NurseryScheduleVo vo = new NurseryScheduleVo();
        vo.setClassesId(classes.getId());
        vo.setClassesName(classes.getName());
        vo.setStatus(status);
        //vo.setCreated(created);
        vo.setLessonDate(lessonDate);
        return vo;
    }
}
